home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / rebound.swf / scripts / DefineButton2_204 / BUTTONCONDACTION on(keyPress p).as next >
Encoding:
Text File  |  2006-06-13  |  415 b   |  19 lines

  1. on(keyPress "p"){
  2.    stopAllSounds();
  3.    if(_root.barbar._currentframe == 1)
  4.    {
  5.       if(_root.pausebar._visible == false)
  6.       {
  7.          _root.tmpspeed = _root.speed;
  8.          _root.pausebar._visible = true;
  9.          _root.pauses = true;
  10.       }
  11.       else
  12.       {
  13.          _root.pausebar._visible = false;
  14.          _root.pauses = false;
  15.          _root.speed = _root.tmpspeed;
  16.       }
  17.    }
  18. }
  19.